package com.subsequent.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 药品库存表
 * @TableName medicine_inventory
 */
@TableName(value ="medicine_inventory")
@Data
public class MedicineInventory implements Serializable {
    /**
     * 库存ID
     */
    @TableId(type = IdType.AUTO)
    private Integer inventoryId;

    /**
     * 药房ID
     */
    private Integer pharmacyId;

    /**
     * 药品ID
     */
    private Integer medicineId;

    /**
     * 批次号
     */
    private String batchNumber;

    /**
     * 生产日期
     */
    private Date productionDate;

    /**
     * 有效期至
     */
    private Date expiryDate;

    /**
     * 当前库存
     */
    private Integer stock;

    /**
     * 锁定库存
     */
    private Integer lockedStock;

    /**
     * 售价
     */
    private BigDecimal price;

    /**
     * 进价
     */
    private BigDecimal costPrice;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}